package com.example.demo.test;

public class College {
    private President president;

    public President getPresident() {
        return president;
    }

    public void setPresident(President president) {
        this.president = president;
    }

    public static void main(String[] args) {
        College college = new College();
        President president1 = new President();
        college.setPresident(president1);
        college.getPresident().hello();
    }
}
